using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DTO;
using BUS;
using Utility;

public partial class admin_A_ChiTiet_TraLoi : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        LoadData();
    }

    private void LoadData()
    {
        try
        {
            int id = int.Parse(Request.QueryString["ID"]);
            TraLoi_DTO traLoi = TraLoi_BUS.GetByID(id);
            lit_ID.Text = traLoi.ID.ToString();

            KhachHang_DTO khachHang = KHACHHANG_BUS.GetByID(traLoi.MaKH);
            lit_MaKH.Text = khachHang.HoTen;

            F_NoiDung.Text = traLoi.NoiDung;

        }
        catch
        {
            Response.Redirect("~/admin/A_TraLoi.aspx");
        }
    }
}
